package com.zoe.onelink.core.web.validation.resolver.impl;

import com.zoe.onelink.core.web.validation.resolver.ValidationFieldInfoManager;
import com.zoe.onelink.core.web.validation.resolver.ValidationFieldNameResolver;

/**
 * <p>标题: </p>
 * <p>描述: </p>
 * <p>版权: Copyright (c) 2021</p>
 * <p>公司: 智业软件股份有限公司</p>
 *
 * @version: 1.0
 * @author: ruansheng
 * @date: 2021-11-30
 */
public class SwaggerValidationFieldNameResolver implements ValidationFieldNameResolver {

    @Override
    public String resolve(String fieldClassName, String fieldName) {
        if (fieldClassName == null || fieldName == null) {
            return null;
        }
        return ValidationFieldInfoManager.getFieldDesc(fieldClassName, fieldName);
    }
}
